package com.yft.service.pos_information;

import com.yft.dao.pos_information.PosMachineDao;
import com.yft.entity.base.Order;
import com.yft.entity.base.Pager;
import com.yft.entity.posinformation.PosMachine;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("posMachineService")
public class PosMachineServiceImp implements PosMachineService {
	Logger log = Logger.getLogger(PosMachineServiceImp.class);
	
	@Autowired(required = true)
	private PosMachineDao posMachineDao;

    @Override
    public Object addPosMachine(PosMachine posMachine) {
        return posMachineDao.addPosMachine(posMachine);
    }

    @Override
    public PosMachine getPosMachine(Integer posMachinePk) {
        return posMachineDao.getPosMachine(posMachinePk);
    }

    @Override
    public boolean updateValues(PosMachine condition, String cumstomStr) {
        return posMachineDao.updateValues(condition,cumstomStr);
    }

    @Override
    public List<PosMachine> getPosMachineList(PosMachine condition, Order order, Pager pager) {
        return posMachineDao.getPosMachineList(condition,order,pager);
    }
}
